﻿using DemoApp1.Attribute;
using DemoApp1.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DemoApp1.Controllers
{
    //[CustomAuthorize(ischeck = true)]
    public class BaseController : Controller
    {
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            ViewBag.ClientId = AppConfig.ClientId;

            ViewBag.AjaxCallAuthUrl = AppConfig.AuthorizationServerBaseAddress + AppConfig.AjaxCallAuthAddress;

            ViewBag.HeaderNameForAjaxAuth = AppConfig.HeaderNameForAjaxAuth;

            base.OnActionExecuting(filterContext);
        }
    }
}